/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package diet.XMLUtils;

import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author nhunhu
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder={
    "datetime",
    "time",
    "dietDetailID",
    "dishID",
    "dishName",
    "calories",
    "imageURL"
})

public class DietInfo implements Serializable {

    @XmlElement(required = true)
    private Date datetime;
    private String time;
    private int dietDetailID;
    private int dishID;
    private String dishName;
    private int calories;
    private String imageURL;

    @XmlAttribute
    private int dietID;
    @XmlAttribute
    private int userID;
    @XmlAttribute
    private Date dateTimeBegin;
    @XmlAttribute
    private Date dateTimeEnd;
    @XmlAttribute
    private String dietName;
    @XmlAttribute
    private int calorieNeed;

    public DietInfo() {
        this.datetime = null;
        this.time = null;
        this.dietDetailID = 0;
        this.dishID = 0;
        this.dishName = null;
        this.calories = 0;
        this.imageURL = null;
        this.dietID = 0;
        this.userID = 0;
        this.dateTimeBegin = null;
        this.dateTimeEnd = null;
        this.dietName = null;
        this.calorieNeed = 0;
    }

    public DietInfo(Date datetime, String time, int dietDetailID, int dishID, String dishName, int calories, String imageURL, int dietID, int userID, Date dateTimeBegin, Date dateTimeEnd, String dietName, int calorieNeed) {
        this.datetime = datetime;
        this.time = time;
        this.dietDetailID = dietDetailID;
        this.dishID = dishID;
        this.dishName = dishName;
        this.calories = calories;
        this.imageURL = imageURL;
        this.dietID = dietID;
        this.userID = userID;
        this.dateTimeBegin = dateTimeBegin;
        this.dateTimeEnd = dateTimeEnd;
        this.dietName = dietName;
        this.calorieNeed = calorieNeed;
    }




    /**
     * @return the datetime
     */
    public Date getDatetime() {
        return datetime;
    }

    /**
     * @param datetime the datetime to set
     */
    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    /**
     * @return the time
     */
    public String getTime() {
        return time;
    }

    /**
     * @param time the time to set
     */
    public void setTime(String time) {
        this.time = time;
    }

    /**
     * @return the dietDetailID
     */
    public int getDietDetailID() {
        return dietDetailID;
    }

    /**
     * @param dietDetailID the dietDetailID to set
     */
    public void setDietDetailID(int dietDetailID) {
        this.dietDetailID = dietDetailID;
    }

    /**
     * @return the dishID
     */
    public int getDishID() {
        return dishID;
    }

    /**
     * @param dishID the dishID to set
     */
    public void setDishID(int dishID) {
        this.dishID = dishID;
    }

    /**
     * @return the dishName
     */
    public String getDishName() {
        return dishName;
    }

    /**
     * @param dishName the dishName to set
     */
    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    /**
     * @return the calories
     */
    public int getCalories() {
        return calories;
    }

    /**
     * @param calories the calories to set
     */
    public void setCalories(int calories) {
        this.calories = calories;
    }

    /**
     * @return the imageURL
     */
    public String getImageURL() {
        return imageURL;
    }

    /**
     * @param imageURL the imageURL to set
     */
    public void setImageURL(String imageURL) {
        this.imageURL = imageURL;
    }

    /**
     * @return the dietID
     */
    public int getDietID() {
        return dietID;
    }

    /**
     * @param dietID the dietID to set
     */
    public void setDietID(int dietID) {
        this.dietID = dietID;
    }

    /**
     * @return the userID
     */
    public int getUserID() {
        return userID;
    }

    /**
     * @param userID the userID to set
     */
    public void setUserID(int userID) {
        this.userID = userID;
    }

    /**
     * @return the dateTimeBegin
     */
    public Date getDateTimeBegin() {
        return dateTimeBegin;
    }

    /**
     * @param dateTimeBegin the dateTimeBegin to set
     */
    public void setDateTimeBegin(Date dateTimeBegin) {
        this.dateTimeBegin = dateTimeBegin;
    }

    /**
     * @return the dateTimeEnd
     */
    public Date getDateTimeEnd() {
        return dateTimeEnd;
    }

    /**
     * @param dateTimeEnd the dateTimeEnd to set
     */
    public void setDateTimeEnd(Date dateTimeEnd) {
        this.dateTimeEnd = dateTimeEnd;
    }

    /**
     * @return the dietName
     */
    public String getDietName() {
        return dietName;
    }

    /**
     * @param dietName the dietName to set
     */
    public void setDietName(String dietName) {
        this.dietName = dietName;
    }

    /**
     * @return the calorieNeed
     */
    public int getCalorieNeed() {
        return calorieNeed;
    }

    /**
     * @param calorieNeed the calorieNeed to set
     */
    public void setCalorieNeed(int calorieNeed) {
        this.calorieNeed = calorieNeed;
    }


}

